package com.chixing.pojo;



import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


@Data
@Document(indexName = "estestjobcomany")
public class EsJobCompany {

    @Id
    private Integer jobId;


    @Field(type = FieldType.Text, analyzer = "ik_smart", searchAnalyzer = "ik_max_word")
    private String jobName;

    @Field(type = FieldType.Keyword)
    private String jobType;

    @Field(type = FieldType.Auto)
    private Float jobMaxSalary;

    @Field(type = FieldType.Auto)
    private Float jobMinSalary;

    @Field(type = FieldType.Keyword)
    private String jobDegree;

    @Field(type = FieldType.Text, analyzer = "ik_smart", searchAnalyzer = "ik_max_word")
    private String jobExperience;

    @Field(type = FieldType.Keyword)
    private String jobLocArea;

    @Field(type = FieldType.Auto)
    private Integer companyId;

    @Field(type = FieldType.Keyword)
    private String companyImg;

    @Field(type = FieldType.Text, analyzer = "ik_smart", searchAnalyzer = "ik_max_word")
    private String companyName;

    @Field(type = FieldType.Keyword)
    private String companyIndustry;

    @Field(type = FieldType.Keyword)
    private String companyFinance;

    @Field(type = FieldType.Keyword)
    private String companyScale;

    public EsJobCompany() {
    }

    public EsJobCompany(Integer jobId, String jobName, String jobType, Float jobMaxSalary, Float jobMinSalary, String jobDegree, String jobExperience, String jobLocArea, Integer companyId, String companyImg, String companyName, String companyIndustry, String companyFinance, String companyScale) {
        this.jobId = jobId;
        this.jobName = jobName;
        this.jobType = jobType;
        this.jobMaxSalary = jobMaxSalary;
        this.jobMinSalary = jobMinSalary;
        this.jobDegree = jobDegree;
        this.jobExperience = jobExperience;
        this.jobLocArea = jobLocArea;
        this.companyId = companyId;
        this.companyImg = companyImg;
        this.companyName = companyName;
        this.companyIndustry = companyIndustry;
        this.companyFinance = companyFinance;
        this.companyScale = companyScale;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public Float getJobMaxSalary() {
        return jobMaxSalary;
    }

    public void setJobMaxSalary(Float jobMaxSalary) {
        this.jobMaxSalary = jobMaxSalary;
    }

    public Float getJobMinSalary() {
        return jobMinSalary;
    }

    public void setJobMinSalary(Float jobMinSalary) {
        this.jobMinSalary = jobMinSalary;
    }

    public String getJobDegree() {
        return jobDegree;
    }

    public void setJobDegree(String jobDegree) {
        this.jobDegree = jobDegree;
    }

    public String getJobExperience() {
        return jobExperience;
    }

    public void setJobExperience(String jobExperience) {
        this.jobExperience = jobExperience;
    }

    public String getJobLocArea() {
        return jobLocArea;
    }

    public void setJobLocArea(String jobLocArea) {
        this.jobLocArea = jobLocArea;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCompanyImg() {
        return companyImg;
    }

    public void setCompanyImg(String companyImg) {
        this.companyImg = companyImg;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyIndustry() {
        return companyIndustry;
    }

    public void setCompanyIndustry(String companyIndustry) {
        this.companyIndustry = companyIndustry;
    }

    public String getCompanyFinance() {
        return companyFinance;
    }

    public void setCompanyFinance(String companyFinance) {
        this.companyFinance = companyFinance;
    }

    public String getCompanyScale() {
        return companyScale;
    }

    public void setCompanyScale(String companyScale) {
        this.companyScale = companyScale;
    }


    @Override
    public String toString() {
        return "EsJobCompany{" +
                "jobId=" + jobId +
                ", jobName='" + jobName + '\'' +
                ", jobType='" + jobType + '\'' +
                ", jobMaxSalary=" + jobMaxSalary +
                ", jobMinSalary=" + jobMinSalary +
                ", jobDegree='" + jobDegree + '\'' +
                ", jobExperience='" + jobExperience + '\'' +
                ", jobLocArea='" + jobLocArea + '\'' +
                ", companyId=" + companyId +
                ", companyImg='" + companyImg + '\'' +
                ", companyName='" + companyName + '\'' +
                ", companyIndustry='" + companyIndustry + '\'' +
                ", companyFinance='" + companyFinance + '\'' +
                ", companyScale='" + companyScale + '\'' +
                '}';
    }
}


